import { Column, Table } from 'sequelize-typescript';
import { BaseModel } from '@/model'
import { DataTypes } from "sequelize";


@Table
export class PlatformInfo extends BaseModel {
  @Column({ type: DataTypes.STRING, allowNull: false, comment: "名称" })
  displayName: string;

  @Column({ type: DataTypes.STRING, allowNull: false, comment: '编码' })
  platformCode: string;

  @Column({ type: DataTypes.INTEGER, allowNull: false, comment: "接口类型" })
  indexSource: number;

  @Column({ type: DataTypes.INTEGER, allowNull: false, comment: "token类型" })
  tokenType: number;

  @Column({ type: DataTypes.STRING, comment: "名称" })
  tokenName: string;

  @Column({ type: DataTypes.INTEGER, comment: "token位置" })
  tokenLocation: number;

  @Column({ type: DataTypes.STRING, comment: "token值" })
  platformToken: string;

  @Column({ type: DataTypes.INTEGER, comment: "刷新时间" })
  tokenRefreshTime: number;

  @Column({ type: DataTypes.STRING, comment: "token函数" })
  tokenFunction: string;
}
